package com.lagou.seckill.base.converter;

import com.lagou.seckill.base.dto.DemoDTO;
import com.lagou.seckill.base.vo.DemoVO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;


/**
 * @Author : lvzhaocheng
 * @Date : 2021-12-25 16:34
 * @Description :
 * @Version : v0.0.1
 */
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface DemoConverter {
    DemoVO convertToDemoVO(DemoDTO demoDTO);

    List<DemoVO> convertToDemoVOList(List<DemoDTO> demoDTOList);
}
